package org.go.smart.settings;

import org.go.smart.log.GSLogger;

public class SettingsBean {
	
	private double temperatureThreshold = 0.2;
	
	private static SettingsBean instance;
	
	private SettingsBean() {
		
	}
	
	public static SettingsBean getInstance() {
		if (instance == null) {
			instance = new SettingsBean();
		}
		return instance;
	}

	public double getTemperatureThreshold() {
		return temperatureThreshold;
	}

	public void setTemperatureThreshold(double threshold) {
		GSLogger.getInstance().info("Temperature threshold was changed from " + this.temperatureThreshold + " to " + threshold);
		this.temperatureThreshold = threshold;
	}

}
